bin=a.out
src=main.cpp
lib=add
package_lib=package.gz
lib_path=./package/lib
header_path=./package/include

$(bin):$(src) $(lib_path)/lib$(lib).so
	g++ $(src) -L $(lib_path) -ladd -I $(header_path)

.PHONY:clean run unpack
clean:
	rm -f $(bin)
run:
	./$(bin)
unpack:
	tar -xzvf $(package_lib) .

